/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.gt.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.gt.entity.GtPostPeople;
import com.thinkgem.jeesite.modules.gt.dao.GtPostPeopleDao;

/**
 * 护林员岗位扶贫人信息Service
 * @author zad
 * @version 2018-03-26
 */
@Service
@Transactional(readOnly = true)
public class GtPostPeopleService extends CrudService<GtPostPeopleDao, GtPostPeople> {

	public GtPostPeople get(String id) {
		return super.get(id);
	}
	
	public List<GtPostPeople> findList(GtPostPeople gtPostPeople) {
		return super.findList(gtPostPeople);
	}
	
	public Page<GtPostPeople> findPage(Page<GtPostPeople> page, GtPostPeople gtPostPeople) {
		return super.findPage(page, gtPostPeople);
	}
	
	@Transactional(readOnly = false)
	public void save(GtPostPeople gtPostPeople) {
		super.save(gtPostPeople);
	}
	
	@Transactional(readOnly = false)
	public void delete(GtPostPeople gtPostPeople) {
		super.delete(gtPostPeople);
	}
	@Transactional(readOnly = false)
	public void deleteByPostId(String postId)
	{
		super.dao.deleteByPostId(postId);
	}
	
	// 批量插入护林员岗位扶贫人信息
	public int insertList(List<GtPostPeople> postPeopleList)
	{
		return super.dao.insertList(postPeopleList);
	}
}